### Godot version

4.0 beta 13

### System information

macOS 13 Ventura, Macbook Pro 2019, 16-inch

### Issue description

In Godot 4, if a editor is expanded to a title bar, double clicking on any button in a title bar such as "Run Project" or "Stop Running Project" will result in minimizing or shrinking a Godot window. It is a small but quite annoying bug and it works in all Godot 4 betas I'v seen. 

### Steps to reproduce

Turn on "Expand to Title" in the Editor Settings/Interface/Editor, than double click on any button in the title area.

### Minimal reproduction project

N/A
_menu_option_confirm(RUN_STOP, true);
	_run(false);
}
void EditorNode::run_play_current() {
	_save_default_environment();
	_menu_option_confirm(RUN_STOP, true);
	_run(true);
}
void EditorNode::run_play_custom(const String &p_custom) {
	bool is_current = !run_current_filename.is_empty();
	_menu_option_confirm(RUN_STOP, true);
	_run(is_current, p_custom);
}
void EditorNode::run_stop() {
	_menu_option_confirm(RUN_STOP, false);
}
bool EditorNode::is_run_playing() const {
	EditorRun::Status status = editor_run.get_status();
	return (status == EditorRun::STATUS_PLAY || status == EditorRun::STATUS_PAUSED);
}
String EditorNode::get_run_playing_scene() const {
	String run_filename = editor_run.get_running_scene();
	if (run_filename.is_empty() && is_run_playing()) {
		run_filename = GLOBAL_GET("application/run/main_scene"); 
	}
	return run_filename;
}
void EditorNode::_immediate_dialog_confirmed() {