We added support for displaying WMTS legend graphics directly in the layer tree, as is already the case with WMS legend graphics.
Example:
Sample use case: https://wmts10.geo.admin.ch/EPSG/2056/1.0.0/WMTSCapabilities.xml
This feature was developed by Sandro Mani