Implement window creation