win: Fix calculating window bounds on high DPI display