Notes about Custom Drawing

General Reference

Drawing to Global Space

By default, custom draws happen in the local space, as if you were drawing a child of the current node. If you want to instead use world-space coordinates, add this line in the _draw function before your other draw code:

draw_set_transform_matrix(get_global_transform().affine_inverse())

Creating draw utility classes

https://godotengine.org/qa/7374/gdscript-utility-classes