Drawn out of a grave with a shroud or coffin is not a good symbol for you. Those who commit a great sin and change the original Islamic codes will be indulged in a great sin according to Islamic interpretation. Such a person should fear God and always look forward to receiving Allah's mercy.
There is a possibility that.the Khwab warns the dreamer not to do bad things. You can avoid such dreams by remaining polite and peaceful toward others around you and also by your behavior with them. Avoiding such dreams by helping the neediest, and showing general behavior will earn you a good reputation and enable you to avoid such nightmares.If you see in dream that you are taking shroud out of the grave then it indicates that you will make changes in the old tradition of Islam and introduce new things in it. This is not good sign. If you do that you will commit a great sin. You must be careful after seeing such kind of dream before telling anyone about Islam.