I'm sure it's easy to do. The lock itself looks like this
The plastic part at the end of the lock turns with the key, a metal rod that comes up from the actuator and has 2 90 degree bends in it goes through the door lock and the action of turning the key causes the rod to be pushed up or down. I don't know where you'd want to move the lock but if you moved it to another part of the door you could probably make up your own rod and make it work.
The end of the rod that connects to the door lock looks like the ones in the bottom right of this picture.
EDIT
Reread your post, as long as the rod can be bent to ensure it doesn't get in the way of the window, it should be doable. It would just have to be bent in a way to ensure you can turn the key normally and you don't have to put any extra force into it.