This function turns a normal screen (one that was not originally defined as a window in the 5250 application) into a window. It is typically used in combination with the saveScreenImage() API.
Place saveScreenImage() in the onload event of the Work With Spooled Files screen. Place showAsWindow() in the onpageload event of the Display Spooled File screen. When option 5 is selected to display a spooled file, it will now appear as a draggable window on top of the Work With Spooled Files screen.