New function toggle-window-dedicated.