Avoid disposing current unique window by Stefterv · Pull Request #1472 · processing/processing4
Add a check to ensure windows[unique] != window before calling toFront() and disposing, preventing the code from disposing the active window. Also tidy imports: replace layout wildcard with explicit Box/fillMaxSize/fillMaxWidth/fillMaxHeight imports, consolidate androidx.compose.runtime imports, and remove unused imports.
Fixes #1471
Interesting race condition that would only happen because the window gets recomposed when the display density changes.