AlertWindow with focus on child component

I see a few similar posts but nothing seems to help solve this for me:

I have an AlertWindow with an editable label added to it as a customComponent.
I just want to launch the window using runModalLoop() and have the label immediately focussed and ready to accept user input.

I’ve tried all kinds of things and nothing is working.
So what is the recommended approach?