Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How do I just drop shadow on stroke like the rectangle in the picture?
I'm not sure that the picture and the question are related in the terms used in the question.
If you want to add some effect to stroke -
You invoke Appearance panel, Select Stroke, press on "fx" and add Drop shadow effect:
Required, but never shown