Probing the dynamics of Bose–Einstein condensates via boundary dissipation