Screen.ScaleFactor
From Xojo Documentation
Read-Only Property (As Double )
The ScaleFactor for the screen.
Note
A ScaleFactor of 1.0 indicates that each point refers to a single pixel on the screen. Higher values indicate a HiDPI display of some kind is being used.