Added code example for creating a window