### Godot version

v4.2.dev.custom_build [443820686]

### System information

Debian Linux X11 Xfce

### Issue description

`AcceptDialog.dialog_close_on_escape` has as description:
```
If [code]true[/code], the dialog will be hidden when the escape key ([constant KEY_ESCAPE]) is pressed.
```
However the parameter also affects, how mouse clicks outside of the popup are interpreted.

https://github.com/godotengine/godot/blob/443820686cad24bbdd7e7050fa3d3f33f43a7bb5/scene/gui/dialogs.cpp#L47-L51

I would expect, that the behavior and the documentation fits.

It is unclear, if the documentation is wrong or if this is a bug and `close_on_escape` should not have an impact on mouse clicks. This got introduced in #59764.

I am inclined to say, that the documentation is correct, because it fits better to the name of the parameter.

### Steps to reproduce

1. Load and start MRP
2. Click button to create Popup
3. Click outside of Popup (left popup closes, right popup doesn't close)


### Minimal reproduction project

[PopupEscapeClose.zip](https://github.com/godotengine/godot/files/11981263/PopupEscapeClose.zip)

continue;
		}
		
		
		if (c == buttons_hbox || c == bg_panel || c->is_set_as_top_level()) {
			continue;
		}
		Size2 child_minsize = c->get_combined_minimum_size();
		content_minsize.x = MAX(child_minsize.x, content_minsize.x);
		content_minsize.y = MAX(child_minsize.y, content_minsize.y);
	}
	
	
	if (theme_cache.panel_style.is_valid()) {
		content_minsize += theme_cache.panel_style->get_minimum_size();
	}
	
	
	Size2 buttons_minsize = buttons_hbox->get_combined_minimum_size();
	content_minsize.x = MAX(buttons_minsize.x, content_minsize.x);
	content_minsize.y += buttons_minsize.y;
	
	content_minsize.y += theme_cache.buttons_separation;
	return content_minsize;
}
void AcceptDialog::_custom_action(const String &p_action) {
	emit_signal(SNAME("custom_action"), p_action);
	custom_action(p_action);
}
void AcceptDialog::_custom_button_visibility_changed(Button *button) {