public void DispatchEvent(EventBase evt, IPanel panel)
        {
            // s_GlobalPanelDebug handle picking elements across all panels
            IMouseEvent mouseEvent = evt as IMouseEvent;

            if (s_GlobalPanelDebug != null && mouseEvent != null)
            {
                if (s_GlobalPanelDebug.InterceptMouseEvent(panel, mouseEvent))
                {
                    evt.StopPropagation();
                    evt.PostDispatch();
                    evt.PreventDefault();
                    evt.stopDispatch = true;
                    return;
                }
            }

            var panelDebug = (panel as BaseVisualElementPanel)?.panelDebug;

            if (panelDebug != null)
            {
                if (panelDebug.InterceptEvent(evt))
                {
                    evt.StopPropagation();
                    evt.PreventDefault();
                    evt.stopDispatch = true;
                    return;
                }
            }
        }