Behaviour is copied from color picking in Layout. Click a material button in this dialog and the material browser lets you select a material.
For this example only the material color is previewed in the button, not the texture.