See (in Japanese)
http://gwclio.icrr.u-tokyo.ac.jp/lcgtsubgroup/inoutoptics/2015/05/category-a-viewport-window-2.html