To adapt the size of the graphics window on the canvas:
! Resizing is not possible during draw operations, like draw_rectangle1.