hello sharonschoice, welcome to LD4all
It isn’t dreaming but hypnopompic hallucinations which appear or stay with us when we are waking up. They are created by our subconscious. But are different from LDs and AP because they occur when we are arousing ourselves from sleep. As far as I know you cannot use these to become lucid, since you are actually waking up. The only way would be if you were chaining your dreams. ( click for more information about chaining )