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

close_on_escape = p_hide;
}
bool AcceptDialog::get_close_on_escape() const {
	return close_on_escape;
}
void AcceptDialog::set_autowrap(bool p_autowrap) {
	message_label->set_autowrap_mode(p_autowrap ? TextServer::AUTOWRAP_WORD : TextServer::AUTOWRAP_OFF);
}
bool AcceptDialog::has_autowrap() {
	return message_label->get_autowrap_mode() != TextServer::AUTOWRAP_OFF;
}
void AcceptDialog::set_ok_button_text(String p_ok_button_text) {
	ok_button->set_text(p_ok_button_text);
	child_controls_changed();
	if (is_visible()) {
		_update_child_rects();
	}
}
String AcceptDialog::get_ok_button_text() const {
	return ok_button->get_text();
}
void AcceptDialog::register_text_enter(Control *p_line_edit) {
	ERR_FAIL_NULL(p_line_edit);
	LineEdit *line_edit = Object::cast_to<LineEdit>(p_line_edit);
	if (line_edit) {
		line_edit->connect("text_submitted", callable_mp(this, &AcceptDialog::_text_submitted));
	}
}
void AcceptDialog::_update_child_rects() {