Point $D$ on the side $BC$ of the acute triangle $ABC$ is chosen so that $AD = AC$. Let $P$ and $Q$ respectively be the feet of the perpendiculars from $C$ and $D$ on the side $AB$. $AP^2 + 3BP^2 = AQ^2 + 3BQ^2$ is known. Calculate the measure of angle $\angle ABC$.