I think it would be more useful if the "myname" was the name of the parent patch and the "text" part was the name of the calling object.
That would at least help in differentiating the windows beyond their contents.
I did some poking around and can set the filename by changing the sys_vgui call in textbuf_open:
sys_vgui("pdtk_textwindow_open .x%lx %dx%d {%s: %s} %d\n",
x, 600, 340, "myname", "text",
...
to
sys_vgui("pdtk_textwindow_open .x%lx %dx%d {%s: %s} %d\n",
x, 600, 340, x->b_canvas->gl_name->s_name, "text",
I'm not sure how to replace the "text" dummy with the parent text object type though.