### 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 (!docks_visible) {
		for (int i = 0; i < DOCK_SLOT_MAX; i++) {
			dock_slot[i]->hide();
		}
		for (int i = 0; i < vsplits.size(); i++) {
			vsplits[i]->hide();
		}
		right_hsplit->hide();
	} else {
		for (int i = 0; i < DOCK_SLOT_MAX; i++) {
			int tabs_visible = 0;
			for (int j = 0; j < dock_slot[i]->get_tab_count(); j++) {
				if (!dock_slot[i]->is_tab_hidden(j)) {
					tabs_visible++;
				}
			}
			if (tabs_visible) {
				dock_slot[i]->show();
			} else {
				dock_slot[i]->hide();