it seems that there are two methods to bring a window to foreground:
restore + maximize
set_focus
the advantage of 1 is t