### Godot version

4.0beta17

### System information

Linux Mint 21.1

### Issue description

When editing animations for the **frame** property of **Sprite2D**, the preview image does not respect the **region_rect** specified in the Sprite2D's properties.

Godot 4.0 (tested with alpha1 to beta17)
![Screenshot from 2023-02-05 21-19-29](https://user-images.githubusercontent.com/2348534/216868394-45a9dc42-ce4b-4b11-82cb-4491aea46d9b.png)

Godot 3.5
![Screenshot from 2023-02-05 21-19-43](https://user-images.githubusercontent.com/2348534/216868543-cff6eb60-a431-4138-8fa6-5c30a54de0e1.png)

As can be seen in the second screenshot, the region rect is applied to the key preview image in Godot 3.5, but is ignored in Godot 4.0.


### Steps to reproduce

Steps:

1. Set a region rect on a Sprite2D node
2. Add Sprite2D.frame as a track to an AnimationPlayer
3. Insert key
4. Key preview does not take region rect into account

### Minimal reproduction project

[MRP.zip](https://github.com/godotengine/godot/files/10637055/MRP.zip)

lines.resize((to_x - from_x + 1) * 2);
	preview_len = preview->get_length();
	for (int i = from_x; i < to_x; i++) {
		float ofs = (i - pixel_begin) * preview_len / pixel_total_len;
		float ofs_n = ((i + 1) - pixel_begin) * preview_len / pixel_total_len;
		ofs += start_ofs;
		ofs_n += start_ofs;
		float max = preview->get_max(ofs, ofs_n) * 0.5 + 0.5;
		float min = preview->get_min(ofs, ofs_n) * 0.5 + 0.5;
		int idx = i - from_x;
		lines.write[idx * 2 + 0] = Vector2(i, rect.position.y + min * rect.size.y);
		lines.write[idx * 2 + 1] = Vector2(i, rect.position.y + max * rect.size.y);
	}
	Vector<Color> color;
	color.push_back(Color(0.75, 0.75, 0.75));
	RS::get_singleton()->canvas_item_add_multiline(get_canvas_item(), lines, color);
	Color cut_color = get_theme_color(SNAME("accent_color"), SNAME("Editor"));
	cut_color.a = 0.7;
	if (start_ofs > 0 && pixel_begin > p_clip_left) {
		draw_rect(Rect2(pixel_begin, rect.position.y, 1, rect.size.y), cut_color);
	}
	if (end_ofs > 0 && pixel_end < p_clip_right) {
		draw_rect(Rect2(pixel_end, rect.position.y, 1, rect.size.y), cut_color);
	}
	if (p_selected) {
		Color accent = get_theme_color(SNAME("accent_color"), SNAME("Editor"));
		draw_rect(rect, accent, false);
	}
}
void AnimationTrackEditTypeAudio::_bind_methods() {