Add set_window().
Merge pull request #9 from metajack/set-window

Add set_window().