### 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)

String type = base_type;
	Callable callable = get_edited_object()->get(get_edited_property());
	edit->set_text("Callable");
	edit->set_disabled(true);
	edit->set_icon(get_theme_icon(SNAME("Callable"), SNAME("EditorIcons")));
}
void EditorPropertyCallable::_bind_methods() {
}
EditorPropertyCallable::EditorPropertyCallable() {
	edit = memnew(Button);
	add_child(edit);
	add_focusable(edit);
}
void EditorPropertyFloat::_set_read_only(bool p_read_only) {
	spin->set_read_only(p_read_only);
}
void EditorPropertyFloat::_value_changed(double val) {
	if (setting) {
		return;
	}
	if (angle_in_radians) {
		val = Math::deg_to_rad(val);
	}
	emit_changed(get_edited_property(), val);
}
void EditorPropertyFloat::update_property() {