wx.PU_CONTAINS_CONTROLS for MacOS

Is it possible to implement behaviour for PU_CONTAINS_CONTROLS for MacOS by ourselves in Python code?
I am implementing custom popup window with controls using wx.PopupTransientWindow. With PU_CONTAINS_CONTROLS flag popup with controls works as expected in windows. The flag is not implemented for MacOS so the controls do not get focus on MacOS.