### Tested versions

Godot Engine v4.2.stable.official.46dc27791

### System information

Windows 10

### Issue description

When exporting to web, Godot fails with this error in the console:

> scene/main/window.cpp:884 - Attempting to make child window exclusive, but the parent window already has another exclusive child. This window: /root/@<!-- -->EditorNode@<!-- -->17120/@<!-- -->Panel@<!-- -->13/@<!-- -->ProjectExportDialog@<!-- -->559/@<!-- -->VBoxContainer@<!-- -->137/@<!-- -->AcceptDialog@<!-- -->411, parent window: /root/@<!-- -->EditorNode@<!-- -->17120/@<!-- -->Panel@<!-- -->13/@<!-- -->ProjectExportDialog@<!-- -->559, current exclusive child window: /root/@<!-- -->EditorNode@<!-- -->17120/@<!-- -->Panel@<!-- -->13/@<!-- -->ProjectExportDialog@<!-- -->559/@<!-- -->ProgressDialog@<!-- -->17444

![a](https://github.com/godotengine/godot/assets/2000051/bf9d22aa-d3fe-4e11-bff6-c387e740fe90)

This happens for newly created empty projects.


### Steps to reproduce

1. Open the attached project (or create a new project).
2. Project->Export->Export All
3. Observe the console error.  No output files are generated.


### Minimal reproduction project (MRP)

[export_test.zip](https://github.com/godotengine/godot/files/13574810/export_test.zip)

String apk_build_command = vformat("assemble%s", build_type);
			cmdline.push_back(apk_build_command);
		}
		cmdline.push_back("-p"); 
		cmdline.push_back(build_path); 
		cmdline.push_back("-Pexport_package_name=" + package_name); 
		cmdline.push_back("-Pexport_version_code=" + version_code); 
		cmdline.push_back("-Pexport_version_name=" + version_name); 
		cmdline.push_back("-Pexport_version_min_sdk=" + min_sdk_version); 
		cmdline.push_back("-Pexport_version_target_sdk=" + target_sdk_version); 
		cmdline.push_back("-Pexport_enabled_abis=" + enabled_abi_string); 
		cmdline.push_back("-Pplugins_local_binaries=" + combined_android_libraries); 
		cmdline.push_back("-Pplugins_remote_binaries=" + combined_android_dependencies); 
		cmdline.push_back("-Pplugins_maven_repos=" + combined_android_dependencies_maven_repos); 
		cmdline.push_back("-Pperform_zipalign=" + zipalign_flag); 
		cmdline.push_back("-Pperform_signing=" + sign_flag); 
		cmdline.push_back("-Pgodot_editor_version=" + String(VERSION_FULL_CONFIG));
		
		
		
		
		print_verbose("Build Android project using gradle command: " + String("\n") + build_command + " " + join_list(cmdline, String(" ")));
		if (should_sign) {
			if (p_debug) {
				String debug_keystore = p_preset->get_or_env("keystore/debug", ENV_ANDROID_KEYSTORE_DEBUG_PATH);
				String debug_password = p_preset->get_or_env("keystore/debug_password", ENV_ANDROID_KEYSTORE_DEBUG_PASS);
				String debug_user = p_preset->get_or_env("keystore/debug_user", ENV_ANDROID_KEYSTORE_DEBUG_USER);
				if (debug_keystore.is_empty()) {
					debug_keystore = EDITOR_GET("export/android/debug_keystore");
					debug_password = EDITOR_GET("export/android/debug_keystore_pass");