[step:Represent each Wishart law on an auxiliary Gaussian product space]Because the laws $W_p(n_1,\Sigma)$ and $W_p(n_2,\Sigma)$ are assumed to be defined, the covariance matrix $\Sigma$ is symmetric and positive semidefinite, so the Gaussian law $\mathcal{N}_p(0,\Sigma)$ on $(\mathbb{R}^p,\mathcal{B}(\mathbb{R}^p))$ is well-defined. Choose an auxiliary probability space $(\Omega,\mathcal{F},\mathbb{P})$ carrying random vectors
\begin{align*}
X_i : (\Omega,\mathcal{F},\mathbb{P}) &\to (\mathbb{R}^p,\mathcal{B}(\mathbb{R}^p)),
\qquad 1 \le i \le n_1,
\end{align*}
and
\begin{align*}
Y_j : (\Omega,\mathcal{F},\mathbb{P}) &\to (\mathbb{R}^p,\mathcal{B}(\mathbb{R}^p)),
\qquad 1 \le j \le n_2,
\end{align*}
such that the combined family $(X_1,\dots,X_{n_1},Y_1,\dots,Y_{n_2})$ is independent and every member has distribution $\mathcal{N}_p(0,\Sigma)$.
Define the random matrices
\begin{align*}
S_X : (\Omega,\mathcal{F},\mathbb{P}) &\to (\mathbb{R}^{p \times p},\mathcal{B}(\mathbb{R}^{p \times p})) \\
\omega &\mapsto \sum_{i=1}^{n_1} X_i(\omega)X_i(\omega)^\top
\end{align*}
and
\begin{align*}
S_Y : (\Omega,\mathcal{F},\mathbb{P}) &\to (\mathbb{R}^{p \times p},\mathcal{B}(\mathbb{R}^{p \times p})) \\
\omega &\mapsto \sum_{j=1}^{n_2} Y_j(\omega)Y_j(\omega)^\top.
\end{align*}
The maps $S_X$ and $S_Y$ are independent because $S_X$ is a measurable function of $(X_i)_{i=1}^{n_1}$, $S_Y$ is a measurable function of $(Y_j)_{j=1}^{n_2}$, and the two Gaussian families are independent. By the definition of the central Wishart distribution,
\begin{align*}
S_X \sim W_p(n_1,\Sigma),
\qquad
S_Y \sim W_p(n_2,\Sigma).
\end{align*}
Therefore $W_1$ and $S_X$ have the same distribution, and $W_2$ and $S_Y$ have the same distribution.[/step]