[GUI] Common GUI API : What would the code look like?