I'm not having a good time trying to access this. I need it to draw guidelines that will be visible at the same size no matter what zoom level I'm at in the 2D editor window. This has to happen in editor, not at runtime. I have the draw code and have it set up using a tool script and the setter of a variable to update it when that is changed. The best info I found pointed me toward EditorInteface.get_editor_viewport_2d(). The only trouble is, I can't access a "camera" for this. It returns null if I try, and there's no property of the viewport itself I'm aware of that I can use to scale my drawn guidelines.
If there's another easier way to draw guidelines that are always the same apparent thickness, regardless of zoom level, I'll glady do that instead. I'm not picky on this.