Gets the UI widget for this agent, if any.
Agents with UI should override this method to return their widget. Default implementation returns null (agents without UI).
The UI widget cast as Object, or null if agent has no UI