Is it possible to access window components from the project library scripts?

Not necessary. A Vision Client Tag Change Event would suffice.

You don't. Or more precisely, not from gateway scope.

You write your script to run in some client scope, Vision or Perspective. See this related discussion:

Note especially how your UI should pull the data it needs from global resources, including tags, not have those resources try to push to the UI.