### Godot version

4.1.dev (dc625bcbfc5b587ba8867481ee7a1f6a567c25d0)

### System information

Mageia 9, Linux

### Issue description

When importing a project in current `master`, the following error is raised for each asset that gets imported:
```
Attempting to parent and popup a dialog that already has a parent.
```

It seems to be raised once per asset, caused by the progress dialog.

CC @bruvzg

### Steps to reproduce

- Import a new project in Godot that contains importable assets, e.g. https://github.com/RPicster/godot4-demo-desert-light

### Minimal reproduction project

See above.
editor_layout_save_delay_timer->start();
}
void EditorNode::_dock_split_dragged(int ofs) {
	editor_layout_save_delay_timer->start();
}
void EditorNode::_load_editor_layout() {
	Ref<ConfigFile> config;
	config.instantiate();
	Error err = config->load(EditorPaths::get_singleton()->get_project_settings_dir().path_join("editor_layout.cfg"));
	if (err != OK) { 
		
		TreeItem *root = FileSystemDock::get_singleton()->get_tree_control()->get_item_with_metadata("res:", 0);
		if (root) {
			root->set_collapsed(false);
		}
		if (overridden_default_layout >= 0) {
			_layout_menu_option(overridden_default_layout);
		}
		return;
	}
	_load_docks_from_config(config, "docks");
	_load_open_scenes_from_config(config);
	_load_central_editor_layout_from_config(config);
	editor_data.set_plugin_window_layout(config);
}
void EditorNode::_update_dock_slots_visibility(bool p_keep_selected_tabs) {