On the Relation between a Non-Hermitian Hamiltonian and a Stochastic Differential Equation in the Theory of Open Systems