When moving windows between monitors on Mac that changes the DPI, we observe incorrect re-sizing of columns and rows. This attempts to rectify the situation by avoiding DPI changes for Mac builds. Fixes #10586 (cherry picked from commit 9722a058)