screenToDipRect

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

Converts a screen physical rect to a screen DIP 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.