How i can remove the opportunity for input events to reach the runtime?
I don't know, it sounds like a bug in whatever ad library you're using.
Nothing else anywhere in the runtime on any platform requires this, so there's no runtime support for working around it. If the runtime isn't visible it shouldn't receive input events, period - if something is letting input events through it's a bug with that thing.