Mac native window disconnected from titlebar
When going into fullscreen (with the green button) and then exiting fullscreen, the window gets strangely disconnected from the titlebar as seen in this screenshot:

![Screen Shot 2022-01-15 at 6 11 08 PM](https://user-images.githubusercontent.com/18533407/149640643-976ef629-3da1-4e5d-8e3d-cbaf4bb1e7de.png)

Furthermore, the window is stretched and there are black bars above and below. I'm able to reproduce it simply by doing the steps above. I'm running macOS Montery 12.0.1. It happens on my 1440p external display and the builtin display.