Partial port of ElectronShellView to Scenery.