Scale factor and CallOutBox

Would it be possible to implement scale factor handling in CallOutBox like it is done in PopupMenu if there are no parentComponent ?
Still it would require some optional parameter to the init component it originate from while still be on the desktop

a myBox.setTransform(juce::AffineTransform::scale(getApproximateScaleFactor(this)));
where this is the component it originate from is not enough.
getApproximateScaleFactor impl from PopupMenu for example.

Thanks !

same goes for DialogWindow