Positive real numbers $x\ne 1$ and $y\ne 1$ satisfy $\log_2x=\log_y16$ and $xy=64$. What is $\left(\log_2\frac{x}{y}\right)^2$?