I want to to get the name of the custom window I type something in to

the manual says:

$window(N/@name)

Returns properties for a window.

title returns the text in the titlebar of the window

But I can't quite figure out what the syntax is to return the window name