Getting Handles with Editor Window

Hey, im wondering how to make a handles.PositionHandle while in editor mode and while i have a Custom window up, anyone know how to do this?

Handles.PositionHandle works a bit like one of the GUI functions in that you pass a position in and it returns a new position to be passed in on the next call:-

var pos: Vector3;
   ...

pos = Handles.PositionHandle(pos, rotation);