[Runtime] Implement Widget API.