### Godot version

4.1.dev (4d5f10fc3a)

### System information

MacOS 13.1 M1 Pro

### Issue description

When right clicking an element of an array/dictionary it will select it but it will never be unselected (not if you select another node nor by reselecting the node). This leads to a lot of element being marked as selected which makes it a little less readable. When doing a left click it won't select.

### Steps to reproduce

1. export an array 
2. add an element 
3. try left click it won't select
4. try right click it will select

### Minimal reproduction project

N/A
Ref<Texture2D> arrow;
	if (foldable) {
		if (object->editor_is_section_unfolded(section)) {
			arrow = get_theme_icon(SNAME("arrow"), SNAME("Tree"));
		} else {
			if (is_layout_rtl()) {
				arrow = get_theme_icon(SNAME("arrow_collapsed_mirrored"), SNAME("Tree"));
			} else {
				arrow = get_theme_icon(SNAME("arrow_collapsed"), SNAME("Tree"));
			}
		}
	}
	return arrow;
}
int EditorInspectorSection::_get_header_height() {
	Ref<Font> font = get_theme_font(SNAME("bold"), SNAME("EditorFonts"));
	int font_size = get_theme_font_size(SNAME("bold_size"), SNAME("EditorFonts"));
	int header_height = font->get_height(font_size);
	Ref<Texture2D> arrow = _get_arrow();
	if (arrow.is_valid()) {
		header_height = MAX(header_height, arrow->get_height());
	}
	header_height += get_theme_constant(SNAME("v_separation"), SNAME("Tree"));
	return header_height;
}
void EditorInspectorSection::_notification(int p_what) {