Question: what is difference between window and viewport?
Answer: A window defines a rectangular area in world coordinates. You define a window with a GWINDOW statement. ... A viewport defines in normalized coordinates a rectangular area on the display device where the image of the data appears. You define a viewport with the GPORT command.