This is really more of a demo. It's doable, just rather ugly. It would deserve some further tuning, if anyone cared enough.
Should help prevent accidents in other windows.