Get the associatedComponent of AlertWindow?

In order to properly show the AlertWindow on Linux (for now modal dialogs are put behind if user click onto another window) i’m thinking to implement a manager to track/arrange them. An easy way is to base it on ModalComponentManager. Is there a way to fetch the associated component of the modal windows (if any) when fetched by getModalComponent?

Override createAlertWindow to register window/component pairs myself?
It seems a bit overkill but why not.