Widget loses focus when it never should to begin with

Yes, that one works but it does not address whole issue - my main Widget still loses focus when I interact with an InputField that is INSIDE that widget. I want to be able to close the widget in 2 ways - either via keypress or via mouse click outside of widget bounds. Now, I can track when mouse leaves the widget area but I cant track clicks outside its space, there is no such functionality, at least not without doubling or tripling complexity of Ui setup with extra helpers and I want to keep it to single widget. So my approach was to check if Widget loses focus when mouse cursor confirmed to be outside its bounds and use it as a signal to close. But since for some reason my widget loses the focus even when I just interact with input box inside it I cant use this approach.

Something is broken, it reports both it lost main Focus and Focus Path but that is impossible, InputField is INSIDE my UserWidget, there is no way it would lose Focus path.