Add changing of the window state to the exresize example.