The kinematics and dark matter fractions of TNG50 galaxies at z = 2 from an observational perspective