at the beginning , i have checked where there already exists a window .if so we do all our creations on that itself .

else we create a new window through cretae window.it consists of 12 fields.
you can further refer to msdn for it