How to get the screen X & Y (float or vector 2D)

The viewport size. It is hard to explain what i want to do