In the legacy Google Apps Script Editor, you could easily create additional Projects that were bound to the parent Sheet / Doc / Slide, under File -> New -> Project.