Draw UI element
Only send event if relevant