Window.ScaleFactor

From Xojo Documentation

Read-Only Property (As Double )
DoubleValue = aWindow.ScaleFactor

Supported for all project types and targets.

The scale factor used when converting user space coordinates to backing store coordinates for this Window.