Use native Window Controls Overlay geometry and sampled background colors so caption hover and drag regions track the system title bar. Forward original Windows close-handler errors to the shared logger so failures retain their stack traces.