In javascript when I access window via Chrome console and then go to the document property I get an object with many kinds of properties:

But when I access the document like this window.documentin the console I get a different object it seems:
The latter one looks like the DOM API which we can use to manipulate HTML.
Question:
Why are we getting different objects of document when we access the document object in the above mentioned different ways?
