### Godot version

v4.0.beta15.official [4fa6edc88]

### System information

Windows10, Forward+, AMD Ryzen 5 5600H with Radeon Graphics

### Issue description

Users can only add Control and Node2D nodes on the Create CanvasItem window, but there are Editor nodes not filtered out. 


### Steps to reproduce

Right-clicking on the 2D viewport. Select the add node feature. A Create CanvasItem window shows. Users can only add Control and Node2D nodes, but there are Editor nodes not filtered out.
![图片](https://user-images.githubusercontent.com/80319225/214565483-98717565-c2e5-41d8-83a0-a985a96fc595.png)

### Minimal reproduction project

No project is needed.
Ref<Script> scr = EditorNode::get_editor_data().script_class_load_script(p_type);
			ERR_FAIL_COND(scr.is_null());
			Ref<Script> base = scr->get_base_script();
			if (base.is_null()) {
				String extends;
				scr->get_language()->get_global_class_name(scr->get_path(), &extends);
				inherits = extends;
				inherited_type = TypeCategory::CPP_TYPE;
			} else {
				inherits = scr->get_language()->get_global_class_name(base->get_path());
				if (inherits.is_empty()) {
					inherits = base->get_path();
					inherited_type = TypeCategory::PATH_TYPE;
				}
			}
		} else {
			inherits = custom_type_parents[p_type];
			if (ClassDB::class_exists(inherits)) {
				inherited_type = TypeCategory::CPP_TYPE;
			}
		}
	}
	
	ERR_FAIL_COND(inherits.is_empty());
	_add_type(inherits, inherited_type);
	TreeItem *item = search_options->create_item(search_options_types[inherits]);
	search_options_types[p_type] = item;
	_configure_search_option_item(item, p_type, p_type_category);
}
void CreateDialog::_configure_search_option_item(TreeItem *r_item, const String &p_type, const TypeCategory p_type_category) {