Drawing different Planes

How to Draw on different planes(XY,YZ,XZ) using mouse.

regards

S.Dastagir