Topological photonics in non-Hermitian and scattering systems