Data-driven reaction coordinate discovery in overdamped and non-conservative systems: application to optical matter structural isomerization