### Godot version

4.0-beta12

### System information

Windows11 Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce GTX 1080

### Issue description

Can not assign "SpriteFrames" resource file to SpriteFrames attribute in custom resource file, it alert "Recursion detected, unable to assign resource to property."


### Steps to reproduce

Please look uploaded project. try assign new_sprite_frames.tres to frames in custom_res.tres.

### Minimal reproduction project

[GodotCustomRes.zip](https://github.com/godotengine/godot/files/10419770/GodotCustomRes.zip)

base_type = p_base_type;
}
void EditorPropertyObjectID::_bind_methods() {
}
EditorPropertyObjectID::EditorPropertyObjectID() {
	edit = memnew(Button);
	add_child(edit);
	add_focusable(edit);
	edit->connect("pressed", callable_mp(this, &EditorPropertyObjectID::_edit_pressed));
}
void EditorPropertySignal::_edit_pressed() {
	Signal signal = get_edited_object()->get(get_edited_property());
	emit_signal(SNAME("object_id_selected"), get_edited_property(), signal.get_object_id());
}
void EditorPropertySignal::update_property() {
	String type = base_type;
	Signal signal = get_edited_object()->get(get_edited_property());
	edit->set_text("Signal: " + signal.get_name());
	edit->set_disabled(false);
	edit->set_icon(get_theme_icon(SNAME("Signals"), SNAME("EditorIcons")));
}
void EditorPropertySignal::_bind_methods() {
}
EditorPropertySignal::EditorPropertySignal() {
	edit = memnew(Button);
	add_child(edit);
	add_focusable(edit);
	edit->connect("pressed", callable_mp(this, &EditorPropertySignal::_edit_pressed));
}
void EditorPropertyCallable::update_property() {