Hmmm, I bet it would rattle against the window, or flex into it during a sudden stop.
If you had a flat plate with a notch cut out so you could slip the nut side of your front axle into it, and then use the quick release to cinch it tight from the other side, the tire would support the bike rim in parallel, and if you could make another tab on a 1" wide step, you could place the front tire and the rear tire together and then just throw a simple cable lock around it for security. Both rim axles would connect to a strap that was bolted straight to the tire carrier and you could pop that off with some qurter turn lock nuts when the ride was done and hang it on the wall. That way, your rims, and the spare are all in the same location and your driving view isn't hampered. You could make a simple stand off that could bolt onto the bottom step out of an old stem and weld on a half radius piece with either a bracket that flipped over the bottom bracket, or a bungee, or one screw that went thru the chain stays(kinda like an old kickstand brace in reverse) for stability and tweaking you rear derailer.
heck, drill a hole thru it for a quick place to hold an allen wrench tool even.
and the pice se resistance! a bottle opener slot built into that!