looking for a gdscript to create texture at runtime, no luck :(
use _draw function then get the viewport(you can add another viewport to screen) and call get_render_target_texture() to get texture .