Toggle NoHandles

I want to add an option to my window menu that’ll allow me to toggle whether or not the window has NoHandles set - I assume this is possible, not sure how tho?

DestroyFunc foo
AddToFunc foo
+ I ThisWindow (HasHandles) WindowStyle !Handles
+ I ThisWindow (!HasHandles) WindowStyle Handles

– Thomas Adam

Thanks!