### Godot version

4.1.stable

### System information

Windows 11 (x64), Intel(R) Core(TM) i5-9400 CPU, Vulkan,  NVIDIA GeForce GTX 1660 Ti driver version 528.24

### Issue description

Every time you right click the Filter Nodes field, it duplicates the 'Filters' section in the dropdown.

https://github.com/godotengine/godot/assets/104696964/b8d867c9-ba31-47c5-91c8-23cfa02f1c89



### Steps to reproduce

Rightclick the Filter Nodes field.

### Minimal reproduction project

N/A
undo_redo->create_action(TTR("Duplicate Node(s)"), UndoRedo::MERGE_DISABLE, selection.front()->get());
			undo_redo->add_do_method(editor_selection, "clear");
			Node *dupsingle = nullptr;
			selection.sort_custom<Node::Comparator>();
			Node *add_below_node = selection.back()->get();
			for (Node *node : selection) {
				Node *parent = node->get_parent();
				List<Node *> owned;
				node->get_owned_by(node->get_owner(), &owned);
				HashMap<const Node *, Node *> duplimap;
				Node *dup = node->duplicate_from_editor(duplimap);
				ERR_CONTINUE(!dup);
				if (selection.size() == 1) {
					dupsingle = dup;
				}
				dup->set_name(parent->validate_child_name(dup));
				undo_redo->add_do_method(add_below_node, "add_sibling", dup, true);
				for (Node *F : owned) {
					if (!duplimap.has(F)) {
						continue;
					}
					Node *d = duplimap[F];
					undo_redo->add_do_method(d, "set_owner", node->get_owner());
				}
				undo_redo->add_do_method(editor_selection, "add_node", dup);
				undo_redo->add_undo_method(parent, "remove_child", dup);
				undo_redo->add_do_reference(dup);
				EditorDebuggerNode *ed = EditorDebuggerNode::get_singleton();
				undo_redo->add_do_method(ed, "live_debug_duplicate_node", edited_scene->get_path_to(node), dup->get_name());
				undo_redo->add_undo_method(ed, "live_debug_remove_node", NodePath(String(edited_scene->get_path_to(parent)).path_join(dup->get_name())));