Anywhere means nothing. What do you want to do, exactly ? What is or what kind of data in your window ? How is it represented ? What kind of notes you want to add ? What relation has the note and the data ? Do you have an example of something similar you want to do ? Without more details... I'd handle a click or double click event, open a modal popup window with a text box, and on the OK button, save the note whereever you want to save the note.
CI/CD = Continuous Impediment/Continuous Despair