I'd suggest a better study would be Tony Tanzillo's VPRECT.LSP routine.
;; Demonstrates how to transform a paper
;; space viewport's corner points into MS
;; world coordinate space.
Because it clearly demonstrates the transformations involved, which are more or less hidden in ET chspace.lsp.