Retain a criminal defense attorney: letting a professional help you will maximize your chance of getting this dismissed.If you can't afford a lawyer, when you appear on the trial/court date, speak to the prosecutor: stress your (hopefully) otherwise clean record, that you were in your own home, had only opened the door for freash air, and hadn't realized that you were visible from outside; be contrite and respectful, not defensive. There is a reasonable chance they will dismiss, or at least downgrade the charges and/or reduce the penalty you may face.