What do you mean with "window"? You dont can add a action to a "window".
You use panels or you mean the enginewindow?