### 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
}
	for (uint32_t i = 0; i < swapchainImageCount; i++) {
		VkImageViewCreateInfo color_image_view = {
			 VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
			 nullptr,
			 0,
			 swapchainImages[i],
			 VK_IMAGE_VIEW_TYPE_2D,
			 format,
			 {
					 VK_COMPONENT_SWIZZLE_R,
					 VK_COMPONENT_SWIZZLE_G,
					 VK_COMPONENT_SWIZZLE_B,
					 VK_COMPONENT_SWIZZLE_A,
			},
			 {  VK_IMAGE_ASPECT_COLOR_BIT,
					 0,
					 1,
					 0,
					 1 },
		};
		window->swapchain_image_resources[i].image = swapchainImages[i];
		color_image_view.image = window->swapchain_image_resources[i].image;
		err = vkCreateImageView(device, &color_image_view, nullptr, &window->swapchain_image_resources[i].view);
		if (err) {
			free(swapchainImages);
			ERR_FAIL_V(ERR_CANT_CREATE);
		}
	}
	free(swapchainImages);