GUI scripting a "Tags" entry field?

I am trying to figure out how to add an entry into a tag edit field (like the ones where you can enter Finder tags).

I have already searched the net but was not able to find any information on how to do this.

Any information is greatly appreciated.

Thanks,

Stefan