Typewise interview question

Differences between window and document objects?