Simplify the window drawing code.
Have window take in offset & height as params.