Making My Movable Modals Modeless?

Alright I see plenty about operating my modal dialog (i.e. Component::runModalLoop) but if I have a DialogWindow, how do I get it on the screen and make it act modal (user can’t switch to other windows) but in a modeless way, i.e. returning back to the main message loop?

This is a regular tabbed settings dialog with an OK, Cancel, and Apply button.

Can’t you just call enterModalState() ?

Ah ok that works great! I guess I was confused about when to leave the modal state but it seems that if the window is deleted or becomes hidden, Juce takes care of it!