window loses resize feature on reopening

I have this problem on VisionOS. When I dismiss and reopen a window from a ImagePresentationComponent, the window misses the resize ui elements when I look at the window corners. The rest of the window ui elements (drag, close...) are there. Resizing was possible before the window was dismissed.

The code is something like this:

WindowGroup(id: "image-display-window",..... } .windowResizability(.automatic) .windowStyle(.plain)

I call dismissWindow() from the window view and it is dismissed correctly.

Then I call openWindow(id: "image-display-window", value: data) from another view to reopen it. It reopens but it missing the possibility to resize.

Anyone knows how to fix this?

Thanks.

window loses resize feature on reopening
 
 
Q