Drop `Box<dyn PlatformWindow>` when the OS closes the native window (#8016)
Closes #7973
This fixes a leak in GPUI when the user didn't override
`on_should_close_window`.
Release Notes:
- N/A
---------
Co-authored-by: Thorsten <thorsten@zed.dev>
ca251babcdAntonio Scandurra committed on 2/19/2024, 2:38:50 PM· committed by GitHubparentc33efe8