What is exactly the this object in a template?

I don’t know where in this forum, but I think some people uses the this object inside a templater template as a way to share data between scripts. I am curious to know to what the this reference is pointing to.
I logged it to the console and, to me, it just looks like the global window object, which in JS is basically a function that is not attached to anything.

Is this correct? Am I missing something?