Generalized window creation