Implement graceful draw handling in UI.