I dug out around the front wheel as much as possible
took about 5 mins
then pushed the bike over completely onto its side so front wheel is lifted out of hole
then dragged the front wheel (and bike) sideways a little to be away from hole. (bike still lying on its side)
then lift the bike back up right (hard bit!)
I have done this many times in my 4 sahara rallies, ie push bike over, drag by the front wheel (nice grip) into a better position, free from the 'problem'
the only pain is lifting the bike back up, and it being flooded
if the bike is loaded with travel gear, you could remove some first
the problem is the heat, and lifting the bike back up with a full tank. Its draining for anyone alone.
when dragging, make sure the bike is put in a 'line' so that you can drive away freely. in deep dunes, I often drop the bike on its side on purpose, drag the front by the front wheel into a better position and lift bike up again. eg if you are in a sand bowl and cannot just drive out. or stuck on a dune face and cant turn around etc.
and my new bike is a heavy XR650R, big tank. but no luggage.
hope this helps