drawing and changing GUI texture depending on a bool

How does “select object” pop up with the context menu if you have a texture?

Are you sure the context checkbox is enabled and you use the pin from your texture?