### Godot version

4.0.dev(2fdaf2919c03ab50f971f2d51616d4ee329d29af)

### System information

any

### Issue description

AnimationPlayer is unintentionally hidden.

https://user-images.githubusercontent.com/61938263/217088704-c1ad44d6-ef7b-4b10-b351-f9f9fa166e39.mp4


### Steps to reproduce

Select AnimationTree -> Select AnimationPlayer

### Minimal reproduction project

N/A
if (!bool(EDITOR_GET("interface/scene_tabs/restore_scenes_on_load"))) {
		return;
	}
	if (!p_layout->has_section(p_section) || !p_layout->has_section_key(p_section, "open_scenes")) {
		return;
	}
	restoring_scenes = true;
	Array scenes = p_layout->get_value(p_section, "open_scenes");
	for (int i = 0; i < scenes.size(); i++) {
		load_scene(scenes[i]);
	}
	save_layout();
	restoring_scenes = false;
}
bool EditorNode::has_scenes_in_session() {