We see that half the area of the octagon is $5$. We see that the triangle area is $5-1 = 4$. That means that $\frac{5h}{2} = 4 \rightarrow h=\frac{8}{5}$.
\[\text{QY}=\frac{8}{5} - 1 = \frac{3}{5}\]
Meaning, $\frac{\frac{2}{5}}{\frac{3}{5}} = \boxed{\textbf{(D) }\frac{2}{3}}$
The diagram shows an octagon consisting of $10$ unit squares. The portion below $\overline{PQ}$ is a unit square and a triangle with base $5$. If $\overline{PQ}$ bisects the area of the octagon, what is the ratio $\dfrac{XQ}{QY}$?

$\textbf{(A)}\ \frac{2}{5}\qquad\textbf{(B)}\ \frac{1}{2}\qquad\textbf{(C)}\ \frac{3}{5}\qquad\textbf{(D)}\ \frac{2}{3}\qquad\textbf{(E)}\ \frac{3}{4}$