Expose the toplevel's pid in the scripting API
This allows scripts to obtain the process behind a window, which can be useful for doing app-specific things in a script.
This allows scripts to obtain the process behind a window, which can be useful for doing app-specific things in a script.