We can put extra sketches in their own <iframe> tag, regardless if they’re global or instance mode.
<iframe>
Some example sketch using both modes + class:
Same sketch but also using a 3rd-party library + import & export:
import
export