Rendering now takes place offscreen, which means that resizing works. However, reopening the windows does not. Need to fix.