\documentclass{article}

\begin{document}

Documents are not indented.

\begin{mydocument}

Neither is this environment.

\begin{proof}

This environment is indented.

\begin{myproof}

But not this custom environment.

\end{myproof}

\end{proof}

\end{mydocument}

\end{document}
