If the MacOS Dock is not located at the bottom, but on the side, this is not taken into account for window scaling.