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

float j = i;
					color_samples.write[i] = get_animation()->value_track_interpolate(
							get_track(),
							Math::lerp(start_time, end_time, j / color_samples.size()));
				}
			}
			color_samples.append(color_next);
		} else {
			color_samples.append(color_samples[0]);
		}
	} else {
		color_samples.append(get_animation()->track_get_key_value(get_track(), p_index + 1));
	}
	for (int i = 0; i < color_samples.size() - 1; i++) {
		Vector<Vector2> points = {
			Vector2(Math::lerp(x_from, x_to, float(i) / (color_samples.size() - 1)), y_from),
			Vector2(Math::lerp(x_from, x_to, float(i + 1) / (color_samples.size() - 1)), y_from),
			Vector2(Math::lerp(x_from, x_to, float(i + 1) / (color_samples.size() - 1)), y_from + fh),
			Vector2(Math::lerp(x_from, x_to, float(i) / (color_samples.size() - 1)), y_from + fh)
		};
		Vector<Color> colors = {
			color_samples[i],
			color_samples[i + 1],
			color_samples[i + 1],
			color_samples[i]
		};
		draw_primitive(points, colors, Vector<Vector2>());
	}
}
void AnimationTrackEditColor::draw_key(int p_index, float p_pixels_sec, int p_x, bool p_selected, int p_clip_left, int p_clip_right) {