### Godot version

v4.0.3.stable.official [5222a99f5]

### System information

Windows 11, AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx     2.10 GHz

### Issue description

  The editor crashes when it is minimised if it isn't the foreground window, eg. via Windows key + M.  This didn't occur in 4.0.2, but is now occurring in 4.0.3. I'll just mention that /interface/editor/save_on_focus_loss is false because another issue mentions something like this but with that property set to true.

### Steps to reproduce

N/A

### Minimal reproduction project

N/A
VkCompositeAlphaFlagBitsKHR compositeAlphaFlags[4] = {
			VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR,
			VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR,
			VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR,
			VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR,
		};
		for (uint32_t i = 0; i < ARRAY_SIZE(compositeAlphaFlags); i++) {
			if (surfCapabilities.supportedCompositeAlpha & compositeAlphaFlags[i]) {
				compositeAlpha = compositeAlphaFlags[i];
				break;
			}
		}
	}
	VkSwapchainCreateInfoKHR swapchain_ci = {
		 VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR,
		 nullptr,
		 0,
		 window->surface,
		 desiredNumOfSwapchainImages,
		 format,
		 color_space,
		 {
				 swapchainExtent.width,
				 swapchainExtent.height,
		},
		 1,
		 VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
		 VK_SHARING_MODE_EXCLUSIVE,
		 0,