fix(canvas): don't hold SurfaceData mut borrow over window resize (#35993)
Fixes #35992
---------
Signed-off-by: Dan Gieschen Knutson <19314778+Giesch@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Kenta Moriuchi <moriken@kimamass.com>