Helper functions common to GenericUI Platforms that wrap another toolkit.