Add and improve documentation

Adds new documentation to Window and improves some existing
documentation.