[guided]The complex Hodge decomposition gives a decomposition after extending scalars from $\mathbb R$ to $\mathbb C$, but the intersection form whose signature we want is a real form on $H^2(X;\mathbb R)$. Therefore we must identify which real subspaces correspond to the complex Hodge summands.
By [Kahler Cohomology Carries a Pure Hodge Structure][citetheorem:8066], applied to the compact Kähler manifold $X$ and to degree $2$, we have
\begin{align*}
H^2(X;\mathbb C)=H^{2,0}(X)\oplus H^{1,1}(X)\oplus H^{0,2}(X).
\end{align*}
The real [vector space](/page/Vector%20Space) $H^2(X;\mathbb R)$ sits inside $H^2(X;\mathbb C)$ as the fixed locus of complex conjugation. Complex conjugation sends a class of type $(p,q)$ to a class of type $(q,p)$. Hence $H^{1,1}(X)$ is preserved by conjugation, while $H^{2,0}(X)$ and $H^{0,2}(X)$ are paired with each other.
For this reason we define
\begin{align*}
V_{\mathbb R}^{1,1}:=H^2(X;\mathbb R)\cap H^{1,1}(X)
\end{align*}
and
\begin{align*}
W_{\mathbb R}:=H^2(X;\mathbb R)\cap \left(H^{2,0}(X)\oplus H^{0,2}(X)\right).
\end{align*}
Every real class $\alpha\in H^2(X;\mathbb R)$ has a unique complex Hodge decomposition
\begin{align*}
\alpha=\alpha_{2,0}+\alpha_{1,1}+\alpha_{0,2},
\end{align*}
with $\alpha_{p,q}\in H^{p,q}(X)$. Since $\alpha$ is fixed by conjugation, uniqueness of the Hodge decomposition forces $\overline{\alpha_{2,0}}=\alpha_{0,2}$ and $\overline{\alpha_{1,1}}=\alpha_{1,1}$. Thus $\alpha_{1,1}\in V_{\mathbb R}^{1,1}$ and $\alpha_{2,0}+\alpha_{0,2}\in W_{\mathbb R}$, proving
\begin{align*}
H^2(X;\mathbb R)=V_{\mathbb R}^{1,1}\oplus W_{\mathbb R}.
\end{align*}
The dimension of $V_{\mathbb R}^{1,1}$ is $h^{1,1}(X)$ because $H^{1,1}(X)$ is defined over the real fixed subspace in this decomposition. The dimension of $W_{\mathbb R}$ is twice the complex dimension of $H^{2,0}(X)$: every $\sigma\in H^{2,0}(X)$ contributes the two real classes $\operatorname{Re}\sigma$ and $\operatorname{Im}\sigma$, and conjugation identifies $H^{0,2}(X)$ with the conjugate space of $H^{2,0}(X)$. Hence
\begin{align*}
\dim_{\mathbb R}W_{\mathbb R}=2h^{2,0}(X).
\end{align*}[/guided]