I do not understand the usage of `window`, here (or in the whole document). Can you explain it, please?