Create a 2D background with image, with keeping a small area fixing in the window

Godot Version

4.3 stable

Question

I am writing a 2d game. And we want to add an image as the background. It’s important that a small area of the image (a door) will be constantly locating in the centre of the game window, regardless how the window is resized. The rest part of the image can be distorted but not the door.

Any suggestions? Thank you.

A texture rect that has its anchors set to the corners of the screen and changing something in the project settings → window (something like scaling? to canvas items, sorry I can not remember the exact setting) should do the trick.