I have this code that I have worked on:
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture} [baseline=1.2in]
\draw [thick] (1,2) -- (1,1) -- (5,1) -- (5,2) -- (6,2) -- (6,5) -- (5,5) -- (5,6) -- (1,6) -- (1,5) -- (0,5) -- (0,2) -- (1,2) ;
% Draw small box on each corner
\draw [thick] (0,2) -- (0,1) -- (1,1) -- (1,2) -- (0,2) ;
\draw [thick] (6,2) -- (5,2) -- (5,1) -- (6,1) -- (6,2) ;
\draw [thick] (5,5) -- (6,5) -- (6,6) -- (5,6) -- (5,5) ;
\draw [thick] (1,5) -- (1,6) -- (0,6) -- (0,5) -- (1,5) ;
\draw [semithick,dashed] (1,2) -- (1,5) -- (5,5) -- (5,2) -- (1,2);
\draw [thick, decorate,decoration={brace,amplitude=10pt},xshift=0pt,yshift=2pt] (0.05,6) -- (5.95,6) node [black,midway,yshift=16pt] {\footnotesize $24$ cm};
\draw [thick, decorate,decoration={brace,amplitude=10pt},xshift=2pt] (6,5.95) -- (6,1.05) node [black,midway,xshift=26pt] {\footnotesize $9$ cm};
\end{tikzpicture}
\end{document}
x
on certain point\draw[cyan] (0,0) rectangle (24,9);
which would result in the right aspect ratio? You can alwaysscale
later ...