Any way to attach a bit of code to individual UI Windows [Editor]

So I am making a Dialogue tree which is currently just a bunch of windows being made by one script and I want to do individual dialogue and such. Currently I’m just using a bunch of lists but its kinda fidgety especially when you want to keep track of which windows are parents, which are children and to which windows. So is there any way I can have an individual script or piece of code attached to each window?

:comet: Check Publisher Window customized with a script

Publisher Window is a welcome screen where the user can learn all the important information about the product (unity asset or project) and your company by visiting important links.

:comet: Download:

:comet: Documentation: Unity Asset Store Publisher 2023 — Create, Sell Unity Assets

:comet: Video: Unity Publisher Window 🎨 Welcome Screen — Unity Asset Store Publisher - YouTube

alt text