We use goto/label in our InputScripts. Is this allowed in GuiXT scripts as well?

Yes, it is.