You shouldn't try to sleep with someone else's significant other.
Ted is talking to his brother's girlfriend because she's sad.
Ted wants to cheer up his brother's girlfriend.
Ted tells his brother's girlfriend he thinks of her as family.
Ted seduces his brother's girlfriend to distract her from her problems.
The girlfriend feels comforted that Ted cares about her.
The girlfriend gets dumped by Ted's brother.