Small cleanups to tile example
Add convenience functions for window management