How to get the outer UI from inside the BrowserFrame...

I created a BrowserFrame in main UI with ExternalResource which linked to local vaadin app(sub UI).

Is there any way to get the outer UI from the inner UI?