DSWindow: make registerCallbackWindowDestroyed method