Having trouble figuring out if two different popups can be used in custom windows - one for the main window, one for the side-listbox. Is it even possible?
yes this is possible, first check for $mouse.lb which will return true if the mouse action that triggered the popup occured in a list box, false if it was over the main window.