dipToScreenRect

abstract fun dipToScreenRect(window: BrowserWindow?, rect: Rectangle): Rectangle(source)

Converts a screen DIP rect to a screen physical rect. The DPI scale is performed relative to the display nearest to window. If window is null, scaling will be performed to the display nearest to rect.