Try something like this...
menu * {
$iif(@* iswm $window($active),GUI):Do something here
}
If you need the menu to only work for custom windows starting with "@GUI", then put "@GUI*" instead of "@*".
Granted, that doesn't give sclick ability, but you may be able to work around needing that depending what you're doing.