Helpers for working with windows.