Attempt to fix segfault in window drop (#10690)

By default NSWindow's release themselves when closed, which doesn't
interact well with rust's lifetime system.

Disable that behaviour, and explicitly release the NSWindow when the
window handle is dropped.

Release Notes:

- Fixed a (rare) panic when closing a window.
41c8f2caa6Conrad Irwin committed on 4/17/2024, 9:29:10 PM· committed by GitHubparentb9e0269
1 file changedLine totals unavailable