What you're describing is DPI scaling. Xtend has built-in features for this, but the results are targeted for usability rather than identically matching physical size between mobile and desktop displays (which usually isn't desirable). You may wish to use the Linear scaling method combined with DPI scaling for the closest match, and you can also use the window_get_dpi and window_set_dpi functions to customize results with your own code.