In GameMaker:Studio game engine there is a thing which is called "Surfaces"
First you create that surface by giving width and height in pixels
then you can draw on it everything you want. You can draw sprites, draw primitives, draw pixels, lines, squares etc. Surfaces are not clearing by itself they are not redrawing
It's like painting on a raster image in 2D graphics program
And then you can convert that surface to a new sprite, or texture
How i can achieve this in GoDot?