### 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
{
		const VkAttachmentDescription2KHR attachment = {
			 VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2_KHR,
			 nullptr,
			 0,
			 format,
			 VK_SAMPLE_COUNT_1_BIT,
			 VK_ATTACHMENT_LOAD_OP_CLEAR,
			 VK_ATTACHMENT_STORE_OP_STORE,
			 VK_ATTACHMENT_LOAD_OP_DONT_CARE,
			 VK_ATTACHMENT_STORE_OP_DONT_CARE,
			 VK_IMAGE_LAYOUT_UNDEFINED,
			 VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
		};
		const VkAttachmentReference2KHR color_reference = {
			 VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2_KHR,
			 nullptr,
			 0,
			 VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
			 0,
		};
		const VkSubpassDescription2KHR subpass = {
			 VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2_KHR,
			 nullptr,
			 0,
			 VK_PIPELINE_BIND_POINT_GRAPHICS,
			 0,
			 0,
			 nullptr,