Better Minimize

Used OnMessage to detect when a minimize is about to happen and hide the
window first to avoid the anim.
Sort() now only processes the added window on minimize, instead of
sorting all windows.