### 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.
if (search_options_types.has(p_type)) {
		return;
	}
	String inherits;
	TypeCategory inherited_type = TypeCategory::OTHER_TYPE;
	if (p_type_category == TypeCategory::CPP_TYPE) {
		inherits = ClassDB::get_parent_class(p_type);
		inherited_type = TypeCategory::CPP_TYPE;
	} else if (p_type_category == TypeCategory::PATH_TYPE) {
		ERR_FAIL_COND(!ResourceLoader::exists(p_type, "Script"));
		Ref<Script> scr = ResourceLoader::load(p_type, "Script");
		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 {
		if (ScriptServer::is_global_class(p_type)) {