Can I make iconify-window binding work when minimize using window manager
I solved this. I must make the function (interactive):

(defun my-handle-iconify-frame()
  (interactive)
  ;; I actually do something more useful than this...
  (message "in my-handle-iconify-frame")
)


obvious in retrospect, since it is run through a key binding, not as a hook function.