To use SetWidgetReference, you first need to load GUIKit using Needs["GUIKit`"].
SetWidgetReference is used to define or replace an associated string name with a given widget within the widget registry of the current script or when used with a GUIObject.