As a TrackIR user, it feels to me like it should be possible to do something like this with the 6dof headtracking data from TrackIR, but basically nobody uses a 1-1 mapping that would produce a camera trick like this.
In my TrackIR config, I move my head left an inch, the projected head moves 6 inches. This is more useful than a even mapping in practice, but solidly breaks the 'looking through a window' illusion.