New type and size.

Modified the type to support resources in the PDF monad.
Added a function to know the size of the window in the OS X (hard coded).