Runtime window resizing

Adds a method to resize the frame at runtime. Requires a related pull request for NME.