Add animations in iconizing and restoring.