DesktopWindow.ScaleFactor

From Xojo Documentation

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

New in 2021r3

Supported for all project types and targets.

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