Is this a GDL script thing?
no, I do not think so, at least not totally.
You can create with the slab Tool in 2D a custom panel an then save it with
file-library and objects-own components (because I am german, I do not know if these are the correct named menu commands).
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation:
b-prisma.de