ContentProviderWithActivationOverride.cs - implements IInputModule withbool UpdateInputModule(). It gets called from DebugPanel each frame and if true returned that means panel need to change its state Activate/Deactivate
Current example showcases activation with regular Button in Canvas.

InputModule property of DebugPanel can be stetted directly

Or override GetInputModule() method in ContentProvider
