### 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.
if (frame != update_spinner_step_frame && (tick - update_spinner_step_msec) > (1000 / 8)) {
				update_spinner_step++;
				if (update_spinner_step >= 8) {
					update_spinner_step = 0;
				}
				update_spinner_step_msec = tick;
				update_spinner_step_frame = frame + 1;
				
				if (EDITOR_GET("interface/editor/show_update_spinner")) {
					update_spinner->set_icon(gui_base->get_theme_icon("Progress" + itos(update_spinner_step + 1), SNAME("EditorIcons")));
				}
			}
			editor_selection->update();
			ResourceImporterTexture::get_singleton()->update_imports();
			if (settings_changed) {
				_update_title();
			}
			if (settings_changed) {
				_update_from_settings();
				settings_changed = false;
				emit_signal(SNAME("project_settings_changed"));
			}
			ResourceImporterTexture::get_singleton()->update_imports();
			bottom_panel_updating = false;
		} break;
		case NOTIFICATION_ENTER_TREE: {
			get_tree()->set_disable_node_threading(true); 
			Engine::get_singleton()->set_editor_hint(true);
			Window *window = get_window();
			if (window) {