You could do it with a world position texture, which doesn’t distort when you scale the mesh. But it looks a little hinky when you move it, since Lumen.
Another option, would be to make the door material masked, and change the size of the mask as you move the door.
PS: Scratch the first option. It won’t move with the door. I really depends how complex your material is…