Documentation for `applyTheme`?

What is the general use case for applyTheme? I find several code samples in the Hilla documentation that uses it (typically in connectedCallback), but nowhere an explanation of its general purpose, specification or documentation. Am I missing something?