How to name Safari windows?
Safari names the window according to what tab is the frontmost (or selected) tab. And it gets that info from the web page itself.

You may be able to go into developer mode, and edit the HTML title attribute on a current web page (not sure, never tried this) but as the name of the window changes with what tab is selected not sure you would find this acceptable.