Edit: To be clear, no XBox is necessary, that's another reason why people chose the Kinect.
Buy a Kinect2, if you have some time a used one is likely cheaper.
Then get the PC adapter kit which will let you hook it up to your PC like any old USB device.
There's an SDK and example software online, easily Googleable.