windowOpen Utility function.
Use windowOpen function.