In macOS, the window size is device-independent points, which may not match the content/backing framebuffer size.