As Dan said...lip over and in. If you have any way to repair/repaint the inside lip (the part of the flange facing toward the front or outside) I would suggest doing it before installing the new windshield/windshield rubber. Water that gets back there tends to be harbored and tends to rust things. Doesn't have to be rain...can happen when you wash the truck.