Some tweaks.
Migrate ScriptWindow, it's basically working.