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

Control *right_spacer = Object::cast_to<Control>(button->get_meta("__right_spacer"));
	if (right_spacer) {
		right_spacer->set_visible(button->is_visible());
	}
}
Button *AcceptDialog::add_button(const String &p_text, bool p_right, const String &p_action) {
	Button *button = memnew(Button);
	button->set_text(p_text);
	Control *right_spacer;
	if (p_right) {
		buttons_hbox->add_child(button);
		right_spacer = buttons_hbox->add_spacer();
	} else {
		buttons_hbox->add_child(button);
		buttons_hbox->move_child(button, 0);
		right_spacer = buttons_hbox->add_spacer(true);
	}
	button->set_meta("__right_spacer", right_spacer);
	button->connect("visibility_changed", callable_mp(this, &AcceptDialog::_custom_button_visibility_changed).bind(button));
	child_controls_changed();
	if (is_visible()) {
		_update_child_rects();
	}
	if (!p_action.is_empty()) {
		button->connect("pressed", callable_mp(this, &AcceptDialog::_custom_action).bind(p_action));
	}
	return button;
}
Button *AcceptDialog::add_cancel_button(const String &p_cancel) {