Indecent exposure is a misdemeanor under Maryland law (11-107). There is no statutory definition of indecent exposure, since it's been a long-standing offense and part of common law. Messina v. Maryland cites various definitions of indecent exposure, noting
Ordinarily, the place where the exposure is made must be public. What
constitutes a public place within the meaning of this offense depends
on the circumstances of the case. The place where the offense is
committed is a public one if the exposure be such that it is likely to
be seen by a number of casual observers
In that instance, the question was whether the law required multiple victims to constitute a crime, and the court said that it did not. What you propose does seem to fit the characterization "likely to be seen by a number of casual observers". There have been a number of upheld convictions of people exposing themselves on their own property but in a manner that can be seen from the street, so the defense "I was on my property" doesn't go anywhere. Accidentally being seen while inside and naked would not be a crime because, as Messina said, "Indecent exposure, to amount to a crime, must have been done intentionally". The question is whether you know that you will be seen: "An exposure becomes indecent, and a crime, when defendant exposes himself at such a time and place that, as a reasonable man, he knows or should know his act will be open to the observation of others". It's not absolutely guaranteed that you would be prosecuted, but it's pretty clear that what you propose does constitute indecent exposure.