### 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
VkSubpassDependency dep = {
				p_create_info->pDependencies[i].srcSubpass, 
				p_create_info->pDependencies[i].dstSubpass, 
				p_create_info->pDependencies[i].srcStageMask, 
				p_create_info->pDependencies[i].dstStageMask, 
				p_create_info->pDependencies[i].srcAccessMask, 
				p_create_info->pDependencies[i].dstAccessMask, 
				p_create_info->pDependencies[i].dependencyFlags, 
			};
			dependencies.push_back(dep);
		}
		
		
		
		VkRenderPassCreateInfo create_info = {
			VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO, 
			next, 
			p_create_info->flags, 
			(uint32_t)attachments.size(), 
			attachments.ptr(), 
			(uint32_t)subpasses.size(), 
			subpasses.ptr(), 
			(uint32_t)dependencies.size(), 
			dependencies.ptr(), 
		};
		return vkCreateRenderPass(device, &create_info, p_allocator, p_render_pass);
	}
}
VKAPI_ATTR VkBool32 VKAPI_CALL VulkanContext::_debug_messenger_callback(