text: Title: Capturing events from interactive plotly line drawing
  Body: ### Checklist
  
  - [x] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar feature requests.
  - [x] I added a descriptive title and summary to this issue.
  
  ### Summary
  
  A way to be able to draw lines in plots and get the coordinates of that line would be very useful. In plotly, line drawing is implemented and is should fire a specific event, but streamlit has no way of accessing that event.
  
  ### Why?
  
  I was working on a dashboard with a plot of 2D probability densities of my data. A great way to understand this specific data is to "select" features that stand out in this probability density and find instances in the underlying data which is close to that feature.
  In my case, the features are lines of varying shapes and can always be thought of as the plot of a function y=f(x).
  As such, the easiest way to find instances that are close to the feature is to draw a simple line over the feature and calculate the distance to that line for all instances in my dataset.
  
  The trick is then to get the coordinates of a line that I draw on a heatmap plot.
  The closest I can get currently is to draw a lasso around a thin slice, but that gives more complexity to the "search", since my target line now has a thickness.
  I'm sure that there's plenty more cases where it makes sense to get the coordinates of a line drawn on a plot or an image.
  
  
  ### How?
  
  Interactive line drawing in plotly is described [here](https://plotly.com/python/shapes/#drawing-shapes-with-a-mouse-on-cartesian-plots).
  For my use-case, the `drawopenpath` option is the most suitable. 
  Reading in plotly's documentation, this will send a `relayout` event, but that doesn't seem to trigger anything on the streamlit side.
  
  Short example of what I tried:
  ```
  import streamlit as st
  import plotly.graph_objects as go
  
  fig = go.Figure()
  fig.add_scatter(x=[0, 1, 2, 3], y=[1,2, 4, 6])
  
  events = st.plotly_chart(
      fig,
      on_select="rerun",
      config={
          'modeBarButtonsToAdd': [
              'drawopenpath',
          ]
      }
  )
  events
  ```
  
  ### Additional Context
  
  _No response_