In the operator formalism the goal is to solve for the physical states, i.e. states which satisfy
\begin{equation}
\mathscr H_\mu(x)|\Psi\rangle=0 \tag{1}
\end{equation}
where $\mathscr H_\mu(x)$ are the four constraints in gravity. Let us assume that $\mathscr H_\mu(x)$ is self-adjoint. Then a simple solution to (1) is (see the 'master constraint')
\begin{equation}
|\Psi\rangle=\lim_{t\to\infty}e^{-t\Delta}|\chi\rangle \tag{2}
\end{equation}
where $\Delta=\int \mathscr{H}_\mu(x)\mathscr{H}_\mu(x)dx$ and $|\chi\rangle$ is an arbitrary state.
Interpreting $t$ as the time coordinate, the operator $e^{-t\Delta}$ can be written as a path integral:
\begin{equation}
\lim_{t\to\infty}e^{-t\Delta}=\int[dg_{ij}][d\pi^{ij}]\exp\int dtdx\left(i\pi^{ij}\dot g_{ij}-\mathscr{H}_\mu\mathscr{H}_\mu\right)
\end{equation}
(where the space and time arguments have been suppressed).
Introducing 'Lagrange multipliers' $N^\mu(x)$ (aka the lapse and shift functions), this can be equivalently written as
\begin{equation}
\lim_{t\to\infty}e^{-t\Delta}=\int[dg_{ij}][d\pi^{ij}][dN^\mu]\exp\int dtdx\left(i\pi^{ij}\dot g_{ij}-N^\mu N^\mu/4-iN^\mu\mathscr{H}_\mu\right)
\end{equation}
Now you integrate $\pi^{ij}$ out and you get
\begin{equation}
\lim_{t\to\infty}e^{-t\Delta}=\int[dg_{ij}][dN^\mu]|\det J|\exp\int dtdx\left(i\mathcal L_{EH}-N^\mu N^\mu/4\right) \tag{3}
\end{equation}
where $\mathcal L_{EH}$ is the Einstein-Hilbert Lagrangian and $|\det J|$ is the field dependant determinant you get from integrating $\pi^{ij}$ out.
The $N^\mu N^\mu$ term can be interpreted as a gauge fixing term (probably arising from the gauge $N^\mu=c^\mu$ which is then integrated w.r.t. $c^\mu$ against a Gaussian weight like $e^{-c^{\mu}c^{\mu}/4}$).
However (3) is a little worrying because there are no ghosts in this path integral and we know that ghosts are needed in the path integral.