In the past, GUILayer.HitTest() could be used to see if a GUIElement was at the location of a click. With the new GUI system, how should this be done?
Check for if the rect you're using for the element contains the mouse
if (yourRect.Contains(Event.current.mousePosition))
{
//hit
}