function isGlobalThisReferenceOrGlobalWindow(scope, node) {
	if (scope.type === "global" && node.type === "ThisExpression") {
		return true;
	}
	if (
		node.type === "Identifier" &&
		(node.name === "window" ||
			(node.name === "globalThis" &&
				getVariableByName(scope, "globalThis")))
	) {
		return !isShadowed(scope, node);
	}

	return false;
}
Checks if the given identifier node is a ThisExpression in the global scope or the global window property.
@param {Object} scope The current scope.
@param {string} node The identifier node to check
@returns {boolean} Whether or not the node is a reference to the global object.