Consider a finite or compact group $G$. The Peter–Weyl decomposition is usually formulated for the group algebra $\mathbb{C}[G]\simeq\bigoplus_i \operatorname{End}(V_i)$, where $V_i$ are the spaces of irreducible representations of $G$. But any representation $T$ defines an object analogous to $\mathbb{C}[G]$, the span of $T(g)$, which I will denote $\mathbb{C}[T]$ by analogy. In fact, $\mathbb{C}[G]\simeq\mathbb{C}[L]$, where $L$ is the left regular representation. If $T=\sum_in_iT_i$ is the isotypic decomposition of $T$ into irreducibles then it seems to be true that $$ \mathbb{C}[T]\simeq\bigoplus_i\mathbb{C}[T_i]\simeq\bigoplus_i\operatorname{End}(V_i), $$ with only irreducibles from $T$ included. The Peter–Weyl theorem is a special case with $T=L$, while the Burnside's theorem is a special case with an irreducible $T$. I think, such a decomposition is used implicitly in the answer to Linear relations among permutation matrices, for example. This might be a case of the Artin–Wedderburn theorem, but it uses a more abstract algebraic language and when I saw it in the context of group representations it was also usually applied to the group algebra.
On the other hand, standard proofs of the Peter–Weyl theorem (Serre's, etc.) do not seem to generalize straightforwardly. We do get a fragment of ‘Fourier transform’ $\mathbb{C}[T]\to\bigoplus_i\mathbb{C}[n_iT_i]$ by restricting to the isotypic components, and it is not hard to show that $\mathbb{C}[nT]\simeq\mathbb{C}[T]$ for any $T$. The ‘Fourier transform’ is easily injective, but for surjectivity the proofs resort to special properties of $L$ or $\mathbb{C}[G]$ or $L^2(G)$, like dimension count for finite groups. On the right, it is $\sum_i(\dim T_i)^2$, which for $T=L$ can be matched to $|G|$ known in advance. But for general $T$ one must show directly that isotypic restrictions can be specified independently (which would not be true if some $T_i$ were isomorphic, say) without using special properties. Is there a nice direct proof of this in the spirit of linear algebra/harmonic analysis and/or reference where it is covered?
This might be related to completeness of matrix elements, but to use that we would have to lift this into $L^2(G)$ and prove something like $\mathbb{C}[T]\simeq M(T)$ for the subspace spanned by matrix elements $T_{ij}(g)$ taken in some basis. The problem is then to show that the natural map $M(T)\to\mathbb{C}[T]$ is surjective.