Ok I added the attachToViewport code. It helped get the windows from loading to the side of the grid. Now I have the problem that the grid is on top of the window hiding the window. I have tried pulling the window forward with the bringToTop window function but it didn’t help.