Description
First off, you can observe this bug in the window example, but it probably applies to any consumer that requests a redraw on SurfaceResized. I noticed it while working on a different PR.
I think this might be because our drawRect override sends a redraw request every time the window bounds change, but so does the application after receiving WindowEvent::SurfaceResized. or AppKit just calls drawRect twice for some reason.
macOS version
ProductName: macOS
ProductVersion: 12.7.6
BuildVersion: 21H1320
Winit version
master (0b6b794)