We use qt(https://www.qt.io) to develop apps.
Qt share widgets(QWidget) by passing QWidget::winId(), and the receiver call QWindow::fromID() to get the widget back. Like