This commit delays closing the native window to the next tick to avoid borrowing either `WindowState` or `MutableAppContext` twice.
This commit delays closing the native window to the next tick to avoid borrowing either `WindowState` or `MutableAppContext` twice.