1. A computer-implemented method for managing graphical user interface (GUI) elements, the method comprising: receiving, at a graphics management system, a window comprising one or more structural regions, each of the one or more structural regions includes attributes indicative of a shape and a location of each corresponding structural region, wherein each of the window and the one or more structural regions comprises an event mask; receiving, at the graphics management system, an incoming event; determining an event type for the incoming event; comparing the event type with the event mask of the window and the event masks of the one or more structural regions; determining whether the incoming event should be routed to the window based on the comparison of the event type, wherein the determination comprises at least one of the following: determining the incoming event should be routed to the window, determining the incoming event should be routed to one of the one or more structural regions, determining the incoming event should be routed to a different window, or determining to drop the incoming event; and routing the incoming event based on the determination of whether the incoming event should be routed to the window.