Part of #327: Restorable inspector window geometry; fix crash while closing