Have also written blog in medium.com. Please refer: https://santhoshblogs.medium.com/difference-between-window-and-document-objects-in-javascript-0a49704d248f
References :
Medium
https://medium.com/@vishnukchandran/difference-between-document-vs-window-object-in-javascript-fad8d2fd1856
https://sushmithavootukuri.medium.com/difference-between-window-document-and-screen-in-javascript-757a65b25e9a
mdn docs
https://developer.mozilla.org/en-US/docs/Web/API/Window
https://developer.mozilla.org/en-US/docs/Web/API/Document
https://developer.mozilla.org/en-US/docs/Web/API
Google's Gemini
https://gemini.google.com