### 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)

swap_cancel_ok = p_swap;
}
AcceptDialog::AcceptDialog() {
	set_wrap_controls(true);
	set_visible(false);
	set_transient(true);
	set_exclusive(true);
	set_clamp_to_embedder(true);
	bg_panel = memnew(Panel);
	add_child(bg_panel, false, INTERNAL_MODE_FRONT);
	buttons_hbox = memnew(HBoxContainer);
	message_label = memnew(Label);
	message_label->set_anchor(SIDE_RIGHT, Control::ANCHOR_END);
	message_label->set_anchor(SIDE_BOTTOM, Control::ANCHOR_END);
	add_child(message_label, false, INTERNAL_MODE_FRONT);
	add_child(buttons_hbox, false, INTERNAL_MODE_FRONT);
	buttons_hbox->add_spacer();
	ok_button = memnew(Button);
	ok_button->set_text("OK");
	buttons_hbox->add_child(ok_button);
	buttons_hbox->add_spacer();
	ok_button->connect("pressed", callable_mp(this, &AcceptDialog::_ok_pressed));
	set_title(TTRC("Alert!"));
	connect("window_input", callable_mp(this, &AcceptDialog::_input_from_window));
}
AcceptDialog::~AcceptDialog() {