Fix bug where loaded windows were not resized

Refs #9970.
Refactor Graph::insertText

Refs #9970
Fix bug when saving Graphs

Refs #9970