Goal: What should you do to prepare a glass window for frosting?

Which of the following methods is more reasonable for accomplishing this goal?
Scrub to remove all dust and debris from the surface, then thoroughly dry with a soft absorbent cloth. Tape a border along the inside of the window frame, using painter's tape. This border will be the portion of window you don't want frosted.