Scale window size on hi-dpi mode

Follow high-dpi guidelines for scaling a window on high-dpi modes.