Add setter for size property and a loop for cleaning events on
HandledWindow object