Redefine WindowDataMap::remove to remove a specified window, cleaning up its callbacks.