### Godot version

3.5.2.stable, 4.0.1.stable

### System information

Arch Linux

### Issue description

When the `Show Hidden Files` property is enabled in the Editor Settings:
![image](https://user-images.githubusercontent.com/6501975/226908540-8e70e520-3dcd-46e4-beaf-103ac176c1de.png)
Any `FileDialog` nodes from the project will inherit this setting, and their `Show Hidden Files` property is set to true everytime the scene is re-opened:

https://user-images.githubusercontent.com/6501975/226909135-a8fafdf7-ca36-40aa-b69a-a7baf2d7ae4f.mp4


This occurs on 3.5.2 as well.

### Steps to reproduce

- Enable `Show Hidden Files` property in the Editor Settings:
    - Reload Godot for the bug to occur
- Create a FileDialog node, and set it's `Show Hidden Files` property to false
- Save and close the scene, and reopen it
- The `Show Hidden Files` property is reset to true.

### Minimal reproduction project

N/A
Script *script = Object::cast_to<Script>(p_object);
	if (!script) {
		return false;
	}
	return script->get_language()->overrides_external_editor();
}
void EditorNode::_edit_current(bool p_skip_foreign) {
	ObjectID current_id = editor_history.get_current();
	Object *current_obj = current_id.is_valid() ? ObjectDB::get_instance(current_id) : nullptr;
	Ref<Resource> res = Object::cast_to<Resource>(current_obj);
	if (p_skip_foreign && res.is_valid()) {
		if (res->get_path().find("::") > -1 && res->get_path().get_slice("::", 0) != editor_data.get_scene_path(get_current_tab())) {
			
			current_obj = nullptr;
		}
	}
	bool inspector_only = editor_history.is_current_inspector_only();
	this->current = current_obj;
	if (!current_obj) {
		SceneTreeDock::get_singleton()->set_selected(nullptr);
		InspectorDock::get_inspector_singleton()->edit(nullptr);
		NodeDock::get_singleton()->set_node(nullptr);
		InspectorDock::get_singleton()->update(nullptr);
		hide_unused_editors();
		return;
	}
	Object *prev_inspected_object = InspectorDock::get_inspector_singleton()->get_edited_object();
	bool disable_folding = bool(EDITOR_GET("interface/inspector/disable_folding"));