When I use the resize corner to resize the window, the size of the viewport changes correctly but the size of the egui window frame does not.
It seems that this is a problem with the pixel density scale since the egui frame is exactly half the width and height of the viewport (since the PDS on my 2021 Macbook is 2).