I'd just add foam in that hole now that it's already shrunk and add silicone on top once it's done curing...
In the future - add a silicone layer on the glass first & window & door great stuff over that. We've never seen that stuff shrink.

Once the GS cures - silicone & coco like usual.
And to lighten things up: