I'm trying to draw the following picture about Heron's Problem

I don't know how to draw angles and dotted lines. Here is my incomplete code.
\documentclass{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{
tikz,
}
\usetikzlibrary{
intersections,
calc
}
\begin{document}
\begin{tikzpicture}[font=\small]
\draw
(0,0) coordinate (A)
(1,1.435) coordinate (B)
(3,3) coordinate (C)
;
\draw[thick] (A) rectangle (C);
\draw[thick] (A)--(B) nodepos=0.6, inner sep=0pt, outer sep=0pt{x};
\draw[thick] ($(x)!0.5cm!90:(A)$) -- ($(x)!0.5cm!-90:(A)$);
\end{tikzpicture}
\end{document}



^\prime.) – Andrew Morton Feb 26 '22 at 11:45